package routers

import (
	BANK_CONTROLLER "gin-project-01/gin-step04/gin18-trans/controllers/bank"
	"gin-project-01/gin-step04/gin18-trans/middlewares"
	"github.com/gin-gonic/gin"
)

func BankRouters(r *gin.Engine) {
	//路由分组中间件使用方式二
	routers := r.Group("/bank")
	routers.Use(middlewares.SaveAccessLog)
	{

		routers.GET("/", BANK_CONTROLLER.BankController{}.Index)

		routers.GET("/trans", BANK_CONTROLLER.BankController{}.Trans)

	}
}
